﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000555 RID: 1365
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FightHeartBeatScRsp : IMessage<FightHeartBeatScRsp>, IMessage, IEquatable<FightHeartBeatScRsp>, IDeepCloneable<FightHeartBeatScRsp>, IBufferMessage
	{
		// Token: 0x17001193 RID: 4499
		// (get) Token: 0x06003D68 RID: 15720 RVA: 0x000A91E5 File Offset: 0x000A73E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FightHeartBeatScRsp> Parser
		{
			get
			{
				return FightHeartBeatScRsp._parser;
			}
		}

		// Token: 0x17001194 RID: 4500
		// (get) Token: 0x06003D69 RID: 15721 RVA: 0x000A91EC File Offset: 0x000A73EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FightHeartBeatScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001195 RID: 4501
		// (get) Token: 0x06003D6A RID: 15722 RVA: 0x000A91FE File Offset: 0x000A73FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FightHeartBeatScRsp.Descriptor;
			}
		}

		// Token: 0x06003D6B RID: 15723 RVA: 0x000A9205 File Offset: 0x000A7405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightHeartBeatScRsp()
		{
		}

		// Token: 0x06003D6C RID: 15724 RVA: 0x000A920D File Offset: 0x000A740D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightHeartBeatScRsp(FightHeartBeatScRsp other) : this()
		{
			this.clientTimeMs_ = other.clientTimeMs_;
			this.serverTimeMs_ = other.serverTimeMs_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003D6D RID: 15725 RVA: 0x000A924A File Offset: 0x000A744A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FightHeartBeatScRsp Clone()
		{
			return new FightHeartBeatScRsp(this);
		}

		// Token: 0x17001196 RID: 4502
		// (get) Token: 0x06003D6E RID: 15726 RVA: 0x000A9252 File Offset: 0x000A7452
		// (set) Token: 0x06003D6F RID: 15727 RVA: 0x000A925A File Offset: 0x000A745A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong ClientTimeMs
		{
			get
			{
				return this.clientTimeMs_;
			}
			set
			{
				this.clientTimeMs_ = value;
			}
		}

		// Token: 0x17001197 RID: 4503
		// (get) Token: 0x06003D70 RID: 15728 RVA: 0x000A9263 File Offset: 0x000A7463
		// (set) Token: 0x06003D71 RID: 15729 RVA: 0x000A926B File Offset: 0x000A746B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong ServerTimeMs
		{
			get
			{
				return this.serverTimeMs_;
			}
			set
			{
				this.serverTimeMs_ = value;
			}
		}

		// Token: 0x17001198 RID: 4504
		// (get) Token: 0x06003D72 RID: 15730 RVA: 0x000A9274 File Offset: 0x000A7474
		// (set) Token: 0x06003D73 RID: 15731 RVA: 0x000A927C File Offset: 0x000A747C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003D74 RID: 15732 RVA: 0x000A9285 File Offset: 0x000A7485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FightHeartBeatScRsp);
		}

		// Token: 0x06003D75 RID: 15733 RVA: 0x000A9294 File Offset: 0x000A7494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FightHeartBeatScRsp other)
		{
			return other != null && (other == this || (this.ClientTimeMs == other.ClientTimeMs && this.ServerTimeMs == other.ServerTimeMs && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003D76 RID: 15734 RVA: 0x000A92F0 File Offset: 0x000A74F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ClientTimeMs != 0UL)
			{
				num ^= this.ClientTimeMs.GetHashCode();
			}
			if (this.ServerTimeMs != 0UL)
			{
				num ^= this.ServerTimeMs.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003D77 RID: 15735 RVA: 0x000A9361 File Offset: 0x000A7561
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003D78 RID: 15736 RVA: 0x000A9369 File Offset: 0x000A7569
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003D79 RID: 15737 RVA: 0x000A9374 File Offset: 0x000A7574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ClientTimeMs != 0UL)
			{
				output.WriteRawTag(8);
				output.WriteUInt64(this.ClientTimeMs);
			}
			if (this.ServerTimeMs != 0UL)
			{
				output.WriteRawTag(48);
				output.WriteUInt64(this.ServerTimeMs);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003D7A RID: 15738 RVA: 0x000A93E8 File Offset: 0x000A75E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ClientTimeMs != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.ClientTimeMs);
			}
			if (this.ServerTimeMs != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.ServerTimeMs);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003D7B RID: 15739 RVA: 0x000A9458 File Offset: 0x000A7658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FightHeartBeatScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ClientTimeMs != 0UL)
			{
				this.ClientTimeMs = other.ClientTimeMs;
			}
			if (other.ServerTimeMs != 0UL)
			{
				this.ServerTimeMs = other.ServerTimeMs;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003D7C RID: 15740 RVA: 0x000A94BC File Offset: 0x000A76BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003D7D RID: 15741 RVA: 0x000A94C8 File Offset: 0x000A76C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 48U)
					{
						if (num != 56U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.ServerTimeMs = input.ReadUInt64();
					}
				}
				else
				{
					this.ClientTimeMs = input.ReadUInt64();
				}
			}
		}

		// Token: 0x04001866 RID: 6246
		private static readonly MessageParser<FightHeartBeatScRsp> _parser = new MessageParser<FightHeartBeatScRsp>(() => new FightHeartBeatScRsp());

		// Token: 0x04001867 RID: 6247
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001868 RID: 6248
		public const int ClientTimeMsFieldNumber = 1;

		// Token: 0x04001869 RID: 6249
		private ulong clientTimeMs_;

		// Token: 0x0400186A RID: 6250
		public const int ServerTimeMsFieldNumber = 6;

		// Token: 0x0400186B RID: 6251
		private ulong serverTimeMs_;

		// Token: 0x0400186C RID: 6252
		public const int RetcodeFieldNumber = 7;

		// Token: 0x0400186D RID: 6253
		private uint retcode_;
	}
}
